package com.lovejes.jesacl.domain.base;

import java.io.Serializable;


/**
 * 
   TODO
   date:2013-7-1
   author:hyyy
   @preserve all
 */
public abstract class BaseAcluser  implements Serializable {

	public static String REF = "Acluser";
	public static String PROP_ONAME = "Oname";
	public static String PROP_USNAME = "Usname";
	public static String PROP_PASSWORD = "Password";
	public static String PROP_LOGINID = "Loginid";
	public static String PROP_RK = "Rk";
	public static String PROP_OID = "Oid";
	public static String PROP_PWDTIME = "Pwdtime";
	public static String PROP_LTIME = "Ltime";
	public static String PROP_ISON = "Ison";
	public static String PROP_UTYPE = "Utype";
	public static String PROP_ULEV = "Ulev";
	public static String PROP_MTIME = "Mtime";
	public static String PROP_IDCARD = "Idcard";
	public static String PROP_EMAIL = "Email";
	public static String PROP_ID = "Id";
	public static String PROP_CTIME = "Ctime";
	public static String PROP_EXT1 = "Ext1";
	public static String PROP_ST = "St";
	public static String PROP_EXT2 = "Ext2";
	public static String PROP_TEL = "Tel";


	// constructors
	public BaseAcluser () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAcluser (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String loginid;
	private java.lang.String email;
	private java.lang.String usname;
	private java.lang.String password;
	private java.lang.String st;
	private java.util.Date mtime;
	private java.util.Date pwdtime;
	private java.util.Date ltime;
	private java.lang.String ison;
	private java.util.Date ctime;
	private java.lang.String rk;
	private java.lang.String idcard;
	private java.lang.String tel;
	private java.lang.Integer ulev;
	private java.lang.String utype;
	private java.lang.String oid;
	private java.lang.String oname;
	private java.lang.String ext1;
	private java.lang.String ext2;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: LOGINID
	 */
	public java.lang.String getLoginid () {
		return loginid;
	}

	/**
	 * Set the value related to the column: LOGINID
	 * @param loginid the LOGINID value
	 */
	public void setLoginid (java.lang.String loginid) {
		this.loginid = loginid;
	}



	/**
	 * Return the value associated with the column: EMAIL
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: EMAIL
	 * @param email the EMAIL value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: USNAME
	 */
	public java.lang.String getUsname () {
		return usname;
	}

	/**
	 * Set the value related to the column: USNAME
	 * @param usname the USNAME value
	 */
	public void setUsname (java.lang.String usname) {
		this.usname = usname;
	}



	/**
	 * Return the value associated with the column: PASSWORD
	 */
	public java.lang.String getPassword () {
		return password;
	}

	/**
	 * Set the value related to the column: PASSWORD
	 * @param password the PASSWORD value
	 */
	public void setPassword (java.lang.String password) {
		this.password = password;
	}



	/**
	 * Return the value associated with the column: ST
	 */
	public java.lang.String getSt () {
		return st;
	}

	/**
	 * Set the value related to the column: ST
	 * @param st the ST value
	 */
	public void setSt (java.lang.String st) {
		this.st = st;
	}



	/**
	 * Return the value associated with the column: MTIME
	 */
	public java.util.Date getMtime () {
		return mtime;
	}

	/**
	 * Set the value related to the column: MTIME
	 * @param mtime the MTIME value
	 */
	public void setMtime (java.util.Date mtime) {
		this.mtime = mtime;
	}



	/**
	 * Return the value associated with the column: PWDTIME
	 */
	public java.util.Date getPwdtime () {
		return pwdtime;
	}

	/**
	 * Set the value related to the column: PWDTIME
	 * @param pwdtime the PWDTIME value
	 */
	public void setPwdtime (java.util.Date pwdtime) {
		this.pwdtime = pwdtime;
	}



	/**
	 * Return the value associated with the column: LTIME
	 */
	public java.util.Date getLtime () {
		return ltime;
	}

	/**
	 * Set the value related to the column: LTIME
	 * @param ltime the LTIME value
	 */
	public void setLtime (java.util.Date ltime) {
		this.ltime = ltime;
	}



	/**
	 * Return the value associated with the column: ISON
	 */
	public java.lang.String getIson () {
		return ison;
	}

	/**
	 * Set the value related to the column: ISON
	 * @param ison the ISON value
	 */
	public void setIson (java.lang.String ison) {
		this.ison = ison;
	}



	/**
	 * Return the value associated with the column: CTIME
	 */
	public java.util.Date getCtime () {
		return ctime;
	}

	/**
	 * Set the value related to the column: CTIME
	 * @param ctime the CTIME value
	 */
	public void setCtime (java.util.Date ctime) {
		this.ctime = ctime;
	}



	/**
	 * Return the value associated with the column: RK
	 */
	public java.lang.String getRk () {
		return rk;
	}

	/**
	 * Set the value related to the column: RK
	 * @param rk the RK value
	 */
	public void setRk (java.lang.String rk) {
		this.rk = rk;
	}



	/**
	 * Return the value associated with the column: IDCARD
	 */
	public java.lang.String getIdcard () {
		return idcard;
	}

	/**
	 * Set the value related to the column: IDCARD
	 * @param idcard the IDCARD value
	 */
	public void setIdcard (java.lang.String idcard) {
		this.idcard = idcard;
	}



	/**
	 * Return the value associated with the column: TEL
	 */
	public java.lang.String getTel () {
		return tel;
	}

	/**
	 * Set the value related to the column: TEL
	 * @param tel the TEL value
	 */
	public void setTel (java.lang.String tel) {
		this.tel = tel;
	}



	/**
	 * Return the value associated with the column: ULEV
	 */
	public java.lang.Integer getUlev () {
		return ulev;
	}

	/**
	 * Set the value related to the column: ULEV
	 * @param ulev the ULEV value
	 */
	public void setUlev (java.lang.Integer ulev) {
		this.ulev = ulev;
	}



	/**
	 * Return the value associated with the column: UTYPE
	 */
	public java.lang.String getUtype () {
		return utype;
	}

	/**
	 * Set the value related to the column: UTYPE
	 * @param utype the UTYPE value
	 */
	public void setUtype (java.lang.String utype) {
		this.utype = utype;
	}



	/**
	 * Return the value associated with the column: OID
	 */
	public java.lang.String getOid () {
		return oid;
	}

	/**
	 * Set the value related to the column: OID
	 * @param oid the OID value
	 */
	public void setOid (java.lang.String oid) {
		this.oid = oid;
	}



	/**
	 * Return the value associated with the column: ONAME
	 */
	public java.lang.String getOname () {
		return oname;
	}

	/**
	 * Set the value related to the column: ONAME
	 * @param oname the ONAME value
	 */
	public void setOname (java.lang.String oname) {
		this.oname = oname;
	}



	/**
	 * Return the value associated with the column: EXT1
	 */
	public java.lang.String getExt1 () {
		return ext1;
	}

	/**
	 * Set the value related to the column: EXT1
	 * @param ext1 the EXT1 value
	 */
	public void setExt1 (java.lang.String ext1) {
		this.ext1 = ext1;
	}



	/**
	 * Return the value associated with the column: EXT2
	 */
	public java.lang.String getExt2 () {
		return ext2;
	}

	/**
	 * Set the value related to the column: EXT2
	 * @param ext2 the EXT2 value
	 */
	public void setExt2 (java.lang.String ext2) {
		this.ext2 = ext2;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.jesacl.domain.Acluser)) return false;
		else {
			com.lovejes.jesacl.domain.Acluser acluser = (com.lovejes.jesacl.domain.Acluser) obj;
			if (null == this.getId() || null == acluser.getId()) return false;
			else return (this.getId().equals(acluser.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}